﻿using System;
using WeightConverterNamespace;

namespace Presentation
{
    public delegate void DLogHandler(ILogger log);
    public interface IView
    {
        int FromType { get; }
        string FromValue { get; }       

        string ToKg { set; }
        string ToOunce { set; }
        string ToPound { set; }
        string ToDram { set; }
        string ToGrain { set; }
        string ErrorMessage { set; }

        bool TBoxKgReadOnly { set; }       
        bool TBoxPoundReadOnly { set; }      
        bool TBoxOunceReadOnly { set; }        
        bool TBoxDramReadOnly { set; }
        bool TBoxGrainReadOnly { set; }
        bool HTMLLoggerMenuItemChecked { set; }
        bool TxtLoggerMenuItemChecked { set; }

        event Action OnCalculateClick;
        event Action SelectedIndexChanged;
        event Action OnReadLogButtonClick;
        event Action OnDeleteLogButtonClick;
        event Action OnHTMLLoggerMenuItemClick;
        event Action OnTxtLoggerMenuItemClick;
        event DLogHandler LogHandler;
    }
}
